package com.cvit.dao;

import com.cvit.model.Postal;
import com.cvit.model.PostalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PostalMapper {
	
	/**
	 * 查询邮单表
	 * */
	List<Postal> selectAll(PostalExample example);
	
	/**
	 * 根据ID、考生号、身份证号、名字查询
	 * */
	Postal selectPostalBy(Postal record);
	
	/**
	 * 根据学号查询
	 * */
	Postal selectByExamineeId(String examineeId);
	
	/**
	 * 按学号删除
	 * */
	void deleteByExamineeId(String examineeId);
	
    long countByExample(PostalExample example);

    int deleteByExample(PostalExample example);

    int deleteByPrimaryKey(String id);

    int insert(Postal record);

    int insertSelective(Postal record);

    List<Postal> selectByExample(PostalExample example);

    Postal selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Postal record, @Param("example") PostalExample example);

    int updateByExample(@Param("record") Postal record, @Param("example") PostalExample example);

    int updateByPrimaryKeySelective(Postal record);

    int updateByPrimaryKey(Postal record);

    /**
     * 身份证号
     * */
	Postal selectByCard(String card);

}